# -*- conding:UTF-8 -*-

'''
@ Project: take_out_food
@ File: urls.py
@ Author: 韩成瑾
@ Date：2022/8/24 11:16

'''


from django.urls import path
from user import views
from rest_framework.routers import DefaultRouter,SimpleRouter

router = SimpleRouter()
router.register('userinfo',views.UserInfo)


urlpatterns = [
    # 注册
    path('register',views.Register.as_view()),
    # 登录
    path('login',views.Login.as_view()),
    # 退出登录
    path('logout',views.Logout.as_view()),
    # 用户
    path('user',views.UserView.as_view()),
    # 地址
    path('addr',views.UserAdder.as_view()),
    # 修改用户密码
    path('password',views.Password.as_view())
]

urlpatterns += router.urls




